
#ifndef __XB_DEV_PIC_H__
#define __XB_DEV_PIC_H__

/* ------------------------------------------------------------------------- */

#define PIC_MASTER_0		0x0020
#define PIC_MASTER_1		0x0021
#define PIC_MASTER_ELCR		0x04d0
#define PIC_SLAVE_0			0x00a0
#define PIC_SLAVE_1			0x00a1
#define PIC_SLAVE_ELCR		0x04d1

/* ------------------------------------------------------------------------- */

capi void fastcall pic_init(void);

capi uint8 fastcall pic_get_elcr(bool ms);
capi void fastcall pic_set_elcr(bool ms, uint8 data);
capi uint8 fastcall pic_get_data(bool ms, int no);
capi void fastcall pic_set_data(bool ms, int no, uint8 data);

/* ------------------------------------------------------------------------- */

#endif
